package com.stx.threeGrup.service;

import com.stx.threeGrup.model.automodel.User;

import java.util.List;

/**
 * Created by Administrator on 2019/6/10
 * @author XiaoYu
 */
public interface UserService {
    /**
     * 登录
     * @param username
     * @return
     */
    boolean login(String username,String password);


    /**
     * 注册
     * @param user
     * @return
     */
    int register (User user);


    /**
     * 查询
     * @param username
     * @return
     */
    User queryUserByUserName(String username);

    /**
     * 删除
     * @param id
     * @return
     */
    int deleteUser(int id);

    List<User> queryUserAll();

}
